package com.sky.agent.controller;

import com.sky.agent.dto.OrgRouterDto;
import com.sky.agent.dto.SquareDto;
import com.sky.agent.service.ISysConfigService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;


@RestController
@RequestMapping({"/config"})
public class SysConfigController {
    @Resource
    private ISysConfigService configService;
    @PostMapping("/orgRouter")
    public Map orgRouter(OrgRouterDto orgRouterDto) {

        return this.configService.orgRouter(orgRouterDto);
    }

    @PostMapping("/getAppLstByOrganForSquare")
    public Map getAppLstByOrganForSquare(SquareDto squareDto) {
        return this.configService.getAppLstByOrganForSquare(squareDto);
    }

//    @GetMapping("/fileDel")
//    public Map fileDel(String filePath) {
//        return configService.fileDel(filePath);
//    }
}
